package com.neusoft.databus.core.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.databus.common.model.Metric;

/**
 * @author naxiang
 */
public interface MetricRepository extends JpaRepository<Metric, Long>, CustomizedMetricRepository {

    Metric findByCode(String code);

    @Override
    List<Metric> findAll();

    void deleteByCode(String code);

    void deleteByIdIn(List<Long> ids);

}
